package com.kt

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.jh.ios.forecast.R
import kotlinx.android.synthetic.main.activity_forget_password.*
import kotlinx.android.synthetic.main.navigation_bar.*

/**
 * 忘记密码
 */
class ForgetPasswordActivity:AppCompatActivity(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_forget_password)
        titelW(this, window)
        init1()
        initEvent1()
    }

    private fun init1() {
        navigation_title.text = "找回密码"
        back_buton.visibility= View.VISIBLE
        back_buton.setOnClickListener(this)
        register_button.setOnClickListener(this)
        tv_huoquyanzhengma.setOnClickListener(this)
    }

    private fun initEvent1() {

    }

    override fun onClick(v: View?) {
        when(v){
            back_buton->{
                finish()
            }
            register_button->{  //重置密码

            }
            tv_huoquyanzhengma->{  //获取验证码

            }
        }
    }
}